Redmine#4889: check that unresolved variables are not allowed in promisers

see https://cfengine.com/dev/issues/4889

Please note test is not staged.