Fix crash when no session in lesson