Check and disallow dynamic groups in ApiQueryMessageGroupStats

Bug: 51761
Change-Id: Ibf372ea14b49a49c526e8cd3d1268f63cba0e738
Merge "Check and disallow dynamic groups in ApiQueryMessageGroupStats"