CRM-11792 Relationship check duplicates further fix for null