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

Fixes #1570
`templateSpans` shouldn't be optional at this point, you can just directly check the length.