Fixes an error from being raised when trying to logout a logged out user