Call to iterator next() was not throwing the right exception.
Merge pull request #5 from Nomeasmo/master

Call to iterator next() was not throwing the right exception.