Don't assume that the excerpt can be found (#27395)

Release Notes:

- Fix (rare) panic in the project diff view
46d67a33c7Conrad Irwin committed on 3/24/2025, 10:12:26 PM· committed by GitHubparent10c04af
1 file changedLine totals unavailable