Minor fixing if session field value is not set.