References #2639: Fixed typo in AbstractGroupTask.getGroup() that caused premature return.  Added unit test.

(cherry picked from commit 3242658740223d885ce05ae290b73ac6bb269c32)