RavenDB-2512 Exit from loop when we have a LOT of documents we skip replicating