do not dereference iterators that point past the end in make_contiguous_range