You're right, and the root page is a common case of an internal page with a single child.  I've added code to jump over all of this in that case.