Fix broken topic recounting on unpublished topics

May fix longstanding bug #1367 at least the bug description fits to the issue I fixed.
should this be here? Because on line 1201 is return false. Or the bracket is wrong