Prevent chartWrapper from being called before defined in IE8.

Added check to ensure chartWrapper was defined prior to calling draw.  Only could reproduce issue in IE8 but this appears to fix it.