Menu: Closes mobile menu when switching to medium, large or extra large view (fixes #3980)