Fix #1569 by de-duplicating license names before insertion

Fixes #1569.

## Deployment Notes:
- [ ] Deploy the worker, as usual
- [ ] Reset the GallerySettings.NextLicenseReport column to null to refresh all reports.