Now correctly returns when no session id is set.