Bug fix on generalize_vars_init

For some users it's failing to get the env var correctly. Added a check
to skip the item if it's failing.