of the node that is found. Avoids doing any memory allocation when building ancestor chain in 99% of the cases.