Bug 1059222 - Fix internal server error on the exclusion-profile endpoin...

Bug 1059222 - Fix internal server error on the exclusion-profile endpoint