[PATCH v4 20/46] env: Avoid checking ENV_IS_IN when env disabled