Don't use render_context to store captured contents.

This relied on a bug in Django - see https://code.djangoproject.com/ticket/21639