Fix EZP-22427: ez_is_field_empty broken on Object Relation fields

https://jira.ez.no/browse/EZP-22427