properly handle paths for which no node was found

supersedes #177 .. unit tests need to be fixed