GUI-293: Handle invalid token or session timeout errors in XHR calls.