Make Object.path not crash when giving invalid path string