ensure chart.credits exists before hiding

I noticed this when setting credits.enabled: false.