Fix DOM.prependChild when element has no children