Fix error in which navigation would be hidden after a page resize if the mobile nav was closed manually.