Deal with an empty list of groups, and notify the frontend when groups change
Merge pull request #465 from hudmol/groups-bugfix

Deal with an empty list of groups, and notify the frontend when groups change