Kept editor from crashing when loading an invalid file.