ensure parent node and owner document are set in some node insertion cases