More robust support for undefined objects and properties
Merge pull request #84 from Andyvanee/undefined-properties

More robust support for undefined objects and properties