fixes issue where first element of watchIgnorePatterns array is an empty array