ensure that we always set envArg to NULL if string is empty