MediaGroup: Ensure we don't return groups with only external media

Fix #348
5 jobs for !427 with dont_group_external_media in 7 minutes and 27 seconds (queued for 46 seconds)
merge request