Fixed error when deleting in level editor with nothing selected.