editor: Log error instead of panic on index out of bounds for line layouts (#32953)

Closes #30191

`line_ix` should never exceed the bounds of `line_layouts`, but a panic
happens on out-of-bounds for this, which seems weird. I couldn’t
reproduce this panic at all. Since this is for displaying inline blame,
we now log an error if this occurs instead of panicking.

Release Notes:

- N/A
aa9dacad28Smit Barmase committed on 6/18/2025, 4:46:07 PM· committed by GitHubparent48491fa
1 file changedLine totals unavailable