Fix removing a DomRange with more than one element.

Once you remove an element from the dom, it has no 'nextSibling'.
So don't remove elements while iterating over them.