MainFrm: fix small back jump with missing index

Fixes #3773