fixes #1788
Merge pull request #1802 from dotCMS/issue-1788-Error-in-console-when-you-Copy-Paste-file-assets

fixes #1788