The method get_xml_object is called from _compute_emitter_partner_id, and to ensure that the xml is a objectify, check that if xml is None:, but when an error was detected, get_xml_object returns False.
get_xml_object
_compute_emitter_partner_id
if xml is None:
Now is consistent and returns None