cater for null group_by key in couch