CORE-5294: Fixed the byte range handling.