Avoid multiple calls creating an end iterator.