Backporting region-parenting fix

So there will be no zero-root situations.