When dns_mode was set to 'none' the coredns_server became an empty string and invalid operation of adding string to list was executed.