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

Fixes #1570
Sorry for the conflicting feedback, but I'd rather keep `forEach` less overloaded.

Just make this a `for` loop instead and restore `forEach` to the way it was.