Main Window: Handle empty menus.

Displaying an empty popover when the menu had no Actions was not really nice.
Main Window: Removed unused code.