range-diff: avoid segfault with -I