Fix a segfault in the case where the entire recursive scan covers