Fix the Groovy template renderer error handling.