Token expiration redirects to error page

Fixed by setting the token to null instead of throwing an exception when expired. This triggers an authentication.