Template substitution should fail on errors.