Fixed state check to support older and newer versions of ember.

Signed-off-by: Alessandro D'Aquino (elara) <alex@midokura.com>
These changes are unrelated to the title of your PR and added by https://github.com/Addepar/ember-charts/pull/14 (which I'll be looking at/merging soon). Could you remove them? Thanks!