fix crash in Menu.removeSeparator() if the menu item doesn't exist or isn't a separator