Check that Groups component is active before using bp_get_groups_slug() in bp_activity_get_show_filters()

Fixes #5637

Props imath

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8429 cdf35c40-ae34-48e0-9cc9-0c9da1808c22