Protect against some bad values in setting environment variables in alist->env-vars