Fix insertBefore for IE10.

In `insertBefore(node, undefined)`, `undefined` is not treated as
`null` causing a runtime error.