Add optional parameter to waitForVendorApi to indicate which fields needs to be set in the global api object
Make sure mixpanel is fully loaded by checking not only the object but also the relevant field in the mixpanel global