prevent map editor from crashing if loaded map is invalid