Null protection on trackEvent method for android.