Fixes #5119: Pending membership request shows wrong count
Merge pull request #5120 from adayth/1.8-fix-5119

Fixes #5119: Pending membership request shows wrong count