Do not serialize `undefined` property values

According to the [ES5 specification](http://es5.github.io/#x15.12.3)
`JSON.stringify()` should not serialize undefined values.