Bug 902847: discard trailing whitespace in latin im to keep it in sync w...

...ith contenteditable elements