fixes  #3317
Merge pull request #3328 from dotCMS/issue-3317-error-in-console-when-you-go-to-template-designer

fixes  #3317