Fixes for Mixpanel events and popup (see https://github.com/restlet/restlet-marketing/issues/125)