Align Range.insertNode() input validation with the specification