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

SessionID's can be manually created with null parts