Fixed issue where relationship loading could stop mid-way

A relationship iterator iterating lazily loading relationships as it
progressed could come to the conclusion that there were no more
relationships to iterate over, even if there had just been a fresh batch
loaded.