Avoid a loop where a parent's parent refers to itself as its parent.

1 file changed