message: Fix potential error in object deserialization
diff: object = {{type}}::read(reader);
  {{/required}}
  {{^required}}
  -opt_object: {{#toWasm}}{{toGraphQLType}}{{/toWasm}} = None;
  if !reader.is_next_nil() {
  opt_object = Some({{type}}::read(reader));
  }
  