Fix: xml: Fix segfault in find_entity()