Avoid a crash in source_cache::extract_lines