[Bug 54318] Rich Edit inserts newly composed text at wrong position when system IME composition ends while a selection is active