Fix #2 avoid java.lang.IllegalStateException in doParse.

As per the JavaDoc, you can only call remove() on an Iterator once per next(). Calling it a second time causes an illegal state exception.