Intercept Ajax errors that occured because the CAS session was ended and redirect to the main UI URL.