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

Fixes a crash when running the benchmark.
Merge pull request #497 from peitschie/benchmark-fix

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