Fixed bug for empty nodes.

A chapter with only non-empty subsections but no non-empty section was falsely
considered empty.