When an empty string was given as trusted_domain, the trusted domain was set to be empty string instead of not beeing set.