Fixed a potential glitch in AbstractIterator if there are no elements
and next is called before hasNext