Reinstate a check after deepening a tree that the child pages are internal pages before descending into them.

refs #1048, #1056.