Fixed automatic return to login page after error or after token expiration. See merge request grp-fidentis/analyst-webapp!33