Fix segfault when there is no default subelement for an HTML node.

Fixes #917