guard against calling accountSwitcher.closeAccountMenu before the accountmenu is created
fixes "user bar hidden" breaking half of RES