PublishPlugin mishandles hierarchical webs when publishing static HTML

I found a reproducible issue in PublishPlugin when publishing topics from hierarchical webs/subwebs.

Top-level web topics publish correctly, but topics under hierarchical webs are selected and logged as published while the generated HTML contains an empty or placeholder body. In our case, many subweb topic exports produced small shell pages with no real topic content.