Bug 857617 - Clean up nsEditor::InsertTextImpl; r=ehsan

--HG--
extra : rebase_source : 2b11cc95d29f08af6e2b93541cdd2f714593fea9