Fix LoadDir crash on unknown folder
Fix LoadDir crash on unknown folder