Don't crash if the requested range is outside the any document root

Fixes a crash when running the benchmark.