Fix crash when parentless sub-cfg in class doc-comment.

Nothing really good to do in this situation, but at least avoid
crashing.

Refs #475
Typo in warning message.