Minor fix in ListOfNodesIterator in hasNext() method