Infinite loop bug.

There's a bug in Scaffold when exporting, if there is a relationship which has no results, an infinite loop could be produced.