allow updatePath to create object

The problem : 

When setting value to an undefined path, path must be created.

Solution : initialize undefined value with a defaultValue