Fixed right click crash in group constraints

The program crashed whenever a user right-clicked on the group constraints form.
This fix solves the bug and allows the user to select all/none, as intended.

Crash reproduced under Windows 8 and Ubuntu Linux with Ruby 1.9.3.