Gets the root store of a given tree child, or undefined if none.
Target to find the root store for.
T Root store type.
Gets the root store of a given tree child, or undefined if none.