Fix exception caused by searching for members by grouping.
Fix due badges appearing in reminder email when there are none.
Update gems