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.
Merge pull request #2128 from tinwelint/2.1-rel-load-stop-fix

Fixed issue where relationship loading could stop mid-way