Fixed #7886 -- Reordered some code in Query.results_iter() to ensure that all