Fix rendering page roots

@andreypopp was having some issues with re-rendering on the page root. I believe this fixes most of them. We can now also render on the page root without having the markup there initially, which was broken before.