Fix crash in iterators
Fix crash in iterators

When you create an iterator where the center of the screen is between the
start and the end of the last function, it produces a crash because
next_box is a null pointer. Add an if there.

I only could reproduce the issue on Windows.

google/orbit,google/orbit,google/orbit,google/orbit