libxmlhelper.py fixed as a test case for RHBZ#1016921