Fixes #3767: Group API V5 refuse creating group with empty query