MacOSX - Fixed NPE selecting menu items after closing main window