Headermenu: Hide menus upon header menu button click.

This fixes a bug where clicking the header menu dropdown button, when the menu open, would hide the menu then quickly show it again once the click registers.