Modify TemplateRenderer to use ThrowIfFaulted instead of Task.Wait

Fixes #782
Might want to add to the comments that it blocks until the task is completed or faulted