Fix error template (bug 938525)

Fixes the way templates are used for errors so the templating isn't used in the dynamic docs.