Do not return groups that have no id's

Resolving group checkbox issue in #28 and maybe #24