Fix NPE initializing an empty session