CORE-5423: Fixed some issues with range requests.