Bug fix: invalid iterator dereferenced.

bear::universe::world_progress_structure used to store the iterator at the end
of the neighborhood before processing a loop which erases elements in the
neighborhood and thus invalidates the iterators.

Now we check the end iterator at each iteration.