Don't write empty strings in template