Add isArray check to data before chart is instantiated.

This prevents an error in Chart.js when instantiating the chart with undefined data or data of the wrong type. The Angular $watch method may also pass a newValue of undefined when it is first called.
Merge pull request #1 from Sixthdim/master

Adding isArray check before chart is instantiated.