Fix icon generation for palettes with groups.
This requires a database reset right now, because the icon generation happens during loading...