Fix a merging mistake which broke taskwait in templates

We need to retain the ability to transform executable directives without
associated statements. The upstream version does not yet have this ability.
Merge pull request #8 from hfinkel/master

Fix a merging mistake which broke taskwait in templates