Quick fix to make sure a session exists.