Prevent chartWrapper from being called before defined in IE8.