Fix issue with Metamorph replace

Scenario: Two nested {{if}}. Outer true, inner false.
Step 1: Set inner to true.
Step 2: Set outer to false in same runloop.
Result: Children of the inner conditional are created without being
destroyed.
Expected: Children should not be created at all.
Merge pull request #1886 from CrowdStrike/fix-metamorph-replace

Fix issue with Metamorph replace