Fix bug #1046284. We had an ordering issue with get_file_text consuming iter_files_bytes.
Specifically, you are supposed to consume the content iterator before you step the
outer iterator. We only notice with remote repository because the other apis
don't explicitly depend on that behavior.