Fix nodeType check in fragment.js

When appending multiple child nodes to the fragment, there is a check for each node to ensure it has a `nodeType === 1`, however, the check was being performed repeatedly on the wrapper `node` instead.