Make sure yielder fragment has the same parent element as the yield

This should address #1206.

@Rich-Harris I don't foresee a scenario in which surrogateParent is missing, but just to be sure, should there be one?