Omit optional sections if not specified

Omit optional sections if "sections=" is empty.