Bug 1028485 Don't set caret position over actual inserted string at commiting composition r=ehsan