Empty subdomain case in template tag is not correctly processed

Hi!
Django passes django.utils.safestring.SafeText to the url template tag when using string literal to define subdomain in template.