Avoid minimatch throw exception when watchIgnorePatterns is array with custom function perperty