[templates] provide default for empty values.