Use Node#insertBefore in all cases.

When Node#insertBefore’s second argument is null or undefined, the
child node is inserted at the end of the parent’s list of child
nodes. Internet Explorer throws an error when that second argument
is undefined, but not null.