fix bug 1059971 - Don't attempt to close non-existant menu
Merge pull request #2716 from darkwing/menu-fix

fix bug 1059971 - Don't attempt to close non-existant menu