SessionID.IsSet() should be used instead of !=SessionID.NOT_SET

from #275