The bool value for testing if parentTemplate was recursive was wrong

Now passing true on first run prevents the warning and passing false for
subsequent runs triggers the warning.