Update nv.d3.js

add undefined detect in nv.d3.js