protecting updateLegend call based on legend:show config to avoid js error.
Update c3.min.js