Avoid setting default values on properties that are ignored

I was affected by a similar issue as #274 - during close of an object, default values will be assigned to properties even if they are marked with JsonIgnore.

I've confirmed that after this change, the reproduder mentioned in #274 is fixed.