Fix CAS logout not called because session was erased before we redirect to CAS server (doesn't happen in tests, don't know why)