branch_list: Ensure index is within list bounds. (#2724)

Z-2630


Release Notes:
- Fixed a crash in branch list that occurred when confirming a match in
empty list.
c466711cd1Piotr Osiewicz committed on 7/14/2023, 5:11:24 PM· committed by GitHubparentsbf9dfa39c15025
1 file changedLine totals unavailable