Fix empty <h2>

Fixes a little bug from #2599.