Don't emit an empty template head literal if there's a template span with a non-empty literal.

Fixes #1570
why not just make forEach take a callback that takes an element and an index?  anyone can call that with a callback that doesn't take an index.