MAP-392: Ensure global error message gets cleared when route changes, except when route changes to login page.