render a template lazily lest it get called at loadtime (which fails)
Merge pull request #2623 from dimagi/lazy-render

render a template lazily lest it get called at loadtime (which fails)