Fixed crash when directory does not exists
Authored by: artyom-beilis 2009-01-02
Parent: [r608]
Child: [r610]