fix(components): TranscludingComponentFactory passes a wrong element to onShadowRoot

Closes #1435
This looks like the test, would it be possible to add a `.not.toThrow()` to make it more explicit ?