Fixed an end index bug for tinymce.dom.RangeUtils.