Only persist when at least one sample or samplegroup
whitespace fix