Fix CRM-1475 membership contribution-detail report

Fix the membership and contribution detail report when being used with ACLs see CRM-1475
Merge pull request #2568 from seamuslee001/master

Fix CRM-14275 membership contribution-detail report