Fix Cursor::textRow when cursor is in a math inset.