NodePathIterator should take into account if nodes exist or not