Fixed a bug where groups.get(i).getName() could get null if no groups
werer defined in groups.xml