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