Fix #2006 - prevent leak of d3 global in node.