Add missing return in DocumentRootNode.

Otherwise null is returned always and the result is thrown away.