fixed bug where db would return an empty random grouping from get_random_grouping() should there exist group names in the db with no associated images (eg: a group tied to no groupings)