Issue #1798754 by mrf,giles.fleury: Removes unnecessary pass by reference from existing relationship check.