Don't try to use `el.nextSibling` if there is none.