Aligned the API of the abstract-iterator to not throw on nexting and ending.