Fixes a bug in hasNext() that can cause it to return true when there are no more elements
Merge pull request #13 from artichikin/master

Fixes a bug in hasNext() iterator