Modify TemplateRenderer to use ThrowIfFaulted instead of Task.Wait

Fixes #782
This does wait for the task, so there's not much in terms of race condition here.