Don't create grouping element for to-one relations.

Fixes 79953026, @afroisalreadyinu can you take a look?
Not everything will have an `id` column/attribute, SourceAgreement and ProductRelation don't. I think this needs more thought.