Fix serialization when  is missing in schema