SP-14: Now only saving groups of preferences that have at least one field set.