fix(events): make ShadowRootEventHandler play nice with static injection