Fixes 'path is undefined' shape regression
Merge pull request #606 from yurydelendik/path-is-undef

Fixes 'path is undefined' shape regression