Reset value in env_var controller also based on public attr

When we switch from private to public env var, we don't want to set
"***********" as a new value of a var.