fix(events): make ShadowRootEventHandler work with the static injector