Improve and simplify findComponentRoot, do not optimistically traverse foreign nodes