[FIX] Only check duplicity if partner has ref

Merged Santiago Said requested to merge MR into 12.0-stage

Merge request reports