Avoid crashing when retrieving session before connection, instead return
invalid session ID.