Fixes cmd:render not working when a grandchild of cms:layout tag.