editor: Fix panic when restoring empty selections on undo/redo (#59372)

Closes FR-81.

Also updates the error log, as the linked issue is closed.

Release Notes:

- Fixed panic when restoring empty selections on undo/redo
969c6c719cNeel committed on 7/2/2026, 1:07:42 PM· committed by GitHubparent2ec0e6c
4 files changedLine totals unavailable