[330] Fixes a bug in model.Group.search_by_name_or_title

The method wasn't filtering based on state and so was showing groups no matter
what state they were in. Have changed to filter only to show active.
Merge branch 'release-v1.7.1-dgu' of github.com:datagovuk/ckan into release-v1.7.1-dgu