Possible fix for 10863. The fix is in line with other error conditions i...

...n this method however if implemented this way you can get an error thrown if you list the controls to group and an error in the result if you group the selected controls. So there needs to be some design changes here but perhaps this can resolve the issue in the short term.