Fix crash if session is never accessed before