Fix template has_variable? check per: http://docs.puppetlabs.com/guides/...

...templating.html