Fixed an editor crash when clicking on edit panel with no entities.