Made generated patches handle undefined values

Generated patches can now handle objects that contain undefined
values. Such values are handled simply by ignoring them, meaning that
this fix does not adequately track changes involving the addition of
undefined values.