Using styleGuideExcludes in config.ini produces an "Invalid argument supplied" warning

#246 Using styleGuideExcludes in config.ini produces an "Invalid argument supplied" warning

Adding condition to check if patternItems is set before attempting to perform a foreach which throws an error when its not during build.