Fix: xml: Fix segfault in find_entity()
Merge pull request #426 from gao-yan/xml-segfault

Fix: xml: Fix segfault in find_entity()