Bugfix when dumping just headers without a summary

This fixes a bug we ran into while using ipsumdump. Thanks for maintaining this!