CMS-2721 Introduce API command GetRelationshipType
Fixed null check.