Hierarchical Numbering Doesn't Work When No Sub-Page/Folder

The hierarchical numbering functionality is very buggy.

For example, I set up the outline of my document and compiled it with hierarchical numbering to get a feel for the format. When I did this I noticed that top-level headings for pages that do not have any child pages do not get numbered in the output. Adding a child page means the top-level page gets numbered correctly.