Fixes #4823 returning ElggRelationship from check_entity_relationship() rather than stdClass object