Force-close modals when the route changes in the editor (prevents them from getting 'stuck').