Update d3Layer.js

Use the inherited GraphicsLayer's _map property in case the global 'map' variable doesn't exist.