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

Fixes #1570
I did think of doing that at first, but then I saw that there are separate forEachKey and forEachValue for iterating over Map&lt;T&gt; (instead of, say, a single forEachRecord), so I thought maybe you'd prefer to have separate variants. I'll modify forEach instead.