fixes #5308
Merge pull request #5310 from dotCMS/issue-5308-junit-error-relate-to-issue-5197

fixes #5308