Update renderer.py

Try to handle partials that are pre-rendered.