Get value from an object safely with specified path.
Get/set value from/to an object safely with specified path.