Remove emty sections before publishing

Bug: T76569
Change-Id: I86e368d7eb8e9700edc18695ed0405445fd41f4e
Merge "Remove emty sections before publishing"