Fix panic when editing diff (#24298)

Release Notes:

- N/A
44a7614a74Conrad Irwin committed on 2/5/2025, 7:14:02 PM· committed by GitHubparent9369b72
2 files changedLine totals unavailable