Fix crash when typing in a reminder spanning more than a single line in Japanese and Chinese