Fix crash when opening kanji timer dialog. Closes #1585.