fixed logout error when trying to logout from nonexistent session