Scroll to top before hiding modal.