Fix broken topic recounting #2586

Fixing:
- unpublished topics
- moderation recount https://github.com/Kunena/Kunena-Forum/issues/1367
This line SHOULD recount also category if needed. Maybe it is broken.