diagnostics: Workaround weird panic in `update_path_excerpts` (#42602)

Fixes ZED-36P

Patching this over for now until I can figure out the cause of this

Release Notes:

- Fixed panic in diagnostics pane
7eac6d242cLukas Wirth committed on 11/13/2025, 9:13:54 AM· committed by GitHubparentb92b283
1 file changedLine totals unavailable