Merge pull request #1624 from dotCMS/issue-1621-dashboard-statistics-problem-in-oracle

fixes #1621
fixed merge for 2.2.1 #1621