Fix for env undefined - return true issue

If the env is undefined (not set), handlers return true.