fixes #5003
Merge pull request #5005 from dotCMS/issue-5003-NPE-when-adding-new-report

fixes #5003