Reinstate calling the callback of an embedded component.

Inadvertently deleted this in the previous commit.
Fight React some more on obtaining the toplevel.

We need to go through refs in order to obtain the embedded toplevel,
it turns out.