fix error when checking for exclusions
Merge pull request #8158 from adobe/randy/fix-exclusion-bug

Fix error when checking for exclusions