Fix panic in Diagnostics (#11066)

cc @maxbrunsfeld

Release Notes:

- Fixed a panic in populating diagnostics
e0644de90eConrad Irwin committed on 4/26/2024, 8:04:18 PM· committed by GitHubparent9329ef1
1 file changedLine totals unavailable