Fix panic when accepting completions (#11762)

Release Notes:

- Fixed a panic caused by missing bounds check in completion handler
cf97b995b2Conrad Irwin committed on 5/13/2024, 5:24:54 PM· committed by GitHubparentbc29218
1 file changedLine totals unavailable