Handle empty diff excerpts (#24168)

Release Notes:

- Fix display, revert and undo of deleted hunks when the file is empty.
cf4539ec79Conrad Irwin committed on 2/4/2025, 5:55:11 AM· committed by GitHubparent8bce896
4 files changedLine totals unavailable