adding better error handling for when a field is missing in a V8 object passed into the encode function for avro