fix verify of tag

Change-Id: I5eb61cc81766ffa99779194c24f3ffb888ee034b
Related-prod: PRODX-7052
diff --git a/update_testrail_xml/reporter.py b/update_testrail_xml/reporter.py
index a88bea9..72e8fe7 100644
--- a/update_testrail_xml/reporter.py
+++ b/update_testrail_xml/reporter.py
@@ -182,8 +182,9 @@
             for child in root:
                 try:
                     if child.attrib['classname'] == case[0] and child.attrib['name'] == case[1]:
+                        print(child.attrib['name'])
                         if (child.attrib['time'] == '0.000' or
-                                child[0].tag == 'error'):
+                                hasattr(next(iter(child), None), 'tag') and child[0].tag == 'error'):
                             child.clear()
                 except KeyError:
                     pass