Fix range placed in intermediate position inside table.
Prevent from IE8 crash and fill empty cells with bogus brs.
Insert element into the first range only in case of multirange selection.