Fixes #4554
Merge pull request #4572 from dotCMS/issue-4554-Error-trying-to-upload-dynamic-plugins

Fixes #4554