HCSVLAB-154: Corrected some issues with tags sanitizer. Fixed an issue with the Licence not being assigned to the Collection after an error.