Fix crash with empty interaction groups
Merge pull request #566 from peastman/master

Fix crash with empty interaction groups