Keep undefined values for the array type

/to @ritch 

This PR makes sure mongodb update doesn't override existing array values. Before the fix, we always set an empty array as the default value. As a consequence, the MongoDB driver will replace existing array properties with an empty array. The issue was reported by node-advisor.