The assert was never hitting because it was first hitting a null cast error in the `renderer.parent!` line in the for loop.