#3714 for 3.6
Merge pull request #3738 from dotCMS/issue-3714-Script-error-in-console-for-binary-thumbanail

#3714 for 3.6