Fixes #5119: Pending membership request shows wrong count