Handle unknown enums using the null object pattern

- Matches python implementation that allows enums fields to be
  populated with different int values (forward compatibility)