Test case for #837
Fix undefined handling for pathed lookups

Fixes #837
Merge pull request #849 from wycats/helper-undefined

Fix undefined handling for pathed lookups