Optionally encode the lookupValue if present when saving a lookup/person type field to the server as it is not required and causes an error if undefined.