popupMenu.js: avoid unintended side effect of unexpected recursive call of PopupMenu.close

Calling this._boxPointer.hide in PopupMenu.close triggers
PopupMenuManager._onKeyFocusChanged,
which ends up calling PopupMenu.close recursively, causing
global.menuStackLength to be decremented twice, unless
the isOpen flag is set to false before the call.