Fix EZP-22617: Use get function on fieldDefinition as assumed by tests