Merge "Make GetState() handle overflowed state and 0 path to root"