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

Fixes #1570
Consider factoring the logic out out to a function `shouldEmitTemplateHead` with an explanation of why it's useful.