Fixed bug in BaseLayout::recurseTestNodeCyclic