fix dictionary lookup crash via OCR in scroll mode

This should fix #432.