Exit if data are not defined

If I use an async call to get my data, the chart is drawn before the data comes in, so I get an error in the console.
Merge pull request #7 from ndeverge/patch-1

Exit if data are not defined