Fix managerGetSessions when a session has no realm.