Fix topic level counting with appendices in PDF2 #1428