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

Fixes #1570