fixed hiding of mobile menu on menu item click to only fire if actually showing mobile menu