Prevent group creation if palette is empty.
Remove group and link placeholders.