Maybe there's a better way to test if we can get a reference to a component by a DOM node?