CORE-4720 Fix for app_groups/get-groups-for-app.

Updated get-groups-for-app to only return public groups.