Menus: Fixed gaps in closing logic. (#5614)

The _MenuBar test introduced in c2cb2a69 doesn't appear to be meaningful.
2 files changed