graceful fail when initCustomEvent is not available