fix DOM insertion operators for null values

Closes #670