**Reproduce on main:**
- Run a DAG
- Rename the DAG
- Wait for dag file processor to remove the deleted DAG and add the new one. (Old Dag should not appear on the home page anymore)
- Go to the Browse DAGRUN page.
- Click on a DagRun of the deleted DAG, as if you want to see the 'details/grid' of that old dag run

More info and screenshots here:
https://github.com/notifications#discussioncomment-6898570

![image](https://github.com/apache/airflow/assets/14861206/7af81643-6278-4d90-a20f-6aa7b259ce59)



if root:
            dag = dag.partial_subset(task_ids_or_regex=root, include_upstream=True, include_downstream=False)
        tis = dag.get_task_instances_before(base_date, num_runs, session=session)
        chart_height = wwwutils.get_chart_height(dag)
        chart = nvd3.lineChart(
            name="lineChart",
            x_custom_format=True,
            x_axis_date=True,
            x_axis_format=LINECHART_X_AXIS_TICKFORMAT,
            height=chart_height,
            chart_attr=self.line_chart_attr,
        )
        y_points: dict[str, list[float]] = defaultdict(list)
        x_points: dict[str, list[tuple[int]]] = defaultdict(list)
        for task in dag.tasks:
            task_id = task.task_id
            for ti in tis:
                if ti.task_id == task.task_id:
                    ts = dag.get_run_data_interval(ti.dag_run).end
                    if ti.end_date:
                        dttm = wwwutils.epoch(ti.execution_date)
                        secs = (ti.end_date - ts).total_seconds()
                        x_points[task_id].append(dttm)
                        y_points[task_id].append(secs)
        
        
        y_unit = infer_time_unit([d for t in y_points.values() for d in t])
        
        chart.create_y_axis("yAxis", format=".02f", custom_format=False, label=f"Landing Time ({y_unit})")
        chart.axislist["yAxis"]["axisLabelDistance"] = "-15"