fixes #5690 in master 3.0
Merge pull request #5712 from dotCMS/issue-5690-themes-not-send-when-pus-publish-designed-template-in-master-3-0

fixes #5690 in master 3.0