Fix a bug when trying to create a new session while logged out