Attempt to hide an invisible menu item is an invalid operation.
Verify that the correct menu item to be disabled is not an invisible menu item.