Fix broken topic recounting on unpublished topics