Fix category discussion counter on move

Reissuing PR https://github.com/vanilla/vanilla/pull/1978 with merge fix.