Adding isArray check 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. Thanks for building this directive. Good work! :)