Don't require passing a root element to Document::new (needed for issue #888).