(bug 45308) added missing check issset( $_SESSION )

Change-Id: I94d797a22583f508a4e473e83058ca7c8f124fd0