Fix unhandled exception from attempting to access menu itemAtIndex:-1