estimate_template_cost was not working for template that as parameters

Looks like parameters was not being passed.

Added that, seems to work. At least no more ValidationError