Avoid outputting an empty <unit> element