EHTMLEditorSelection - Introduce e_html_editor_selection_is_collapsed and use it where possible

Before we were comparing the selection text to look if the selection is
collapsed. Use webkit_dom_range_get_collapsed instead.