apos.forEachDocumentInCollection once again guarantees that it is safe to use an iterator that invokes its callback before returning. This fixes apostrophe:migrate crashes that only occur with very large data sets (FM).