fix warnings about non existent menu

The previous pull request to disable the gradle menu when the gradle nature was not present logs several warnings/errors about the menu not existing.  This pull request removes those errors.