[FIX] Number of reported work packages in personal activity differs from number in My page

Old Pull request: https://github.com/opf/openproject/pull/981

Fixes https://www.openproject.org/work_packages/5002