Return parent node in `getNodesForPath`