Fix NPE with getGroupPrefix() and getGroupName().