Add logging for Node.prototype.replaceChild