RavenDB-2526: Ravendb Build 2903 studio database export stops at 65536 documents
Properly fixing limit calc
Only use the limit for actual limitation of the entire result