MT#6789 Fix empty string as email template id.

Causes creating customers to fail.