Fix for RavenDB-2509 (failing smuggler tests with limit)

if  remaining records (up to the limit) are smaller than batch size, use batch with appropriate size