Add acceptence test for invalid mustache template

Ref:Redmine:4702 (https://cfengine.com/dev/issues/4702)
Merge remote-tracking branch 'nick/redmine/4702'
Be robust against incomplete Mustache templates

Close #4702