[Secured] fix error if session empty