Fix ligature selection crash on CJK font

More info available in first commit log