-- fixed for CRM-10146, Restricted the creation of same membership and activity again.
Merge pull request #995 from dpradeep/CRM-10146-commit

-- fixed for CRM-10146, Restricted the creation of same membership and a...

Recreated bug, applied patch and tested ok. Also reviewed and ran the new web test.