Fixes 1542. Infinite loop in Node::IsActiveInHierarchy
Merge pull request #1544 from seanpaultaylor/next

Fixes #1542. Infinite loop in Node::IsActiveInHierarchy