Change object checking to not count fields with null as missing

`null` is a valid value to have in the field of an object. A field is really only undefined if its value is `undefined`.