Update TaskItemCollectionImpl.java

Fixed error in iterator logic and modify item methods.