Check the existence of the root element as the root element may be empty.
(Eg. described in #2078, using custom render that doesn't generate DOM may cause the empty root)
Additional context
What is the purpose of this pull request?
[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other
Before submitting the PR, please make sure you do the following
Description
Fix: #2078
Check the existence of the root element as the root element may be empty. (Eg. described in #2078, using custom render that doesn't generate DOM may cause the empty root)
Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).