When setRoot is called with `waitForRender=true`, check if the root view is destroyed before displaying it.