Fix a segfault

Caused by an invalid iterator
Add expected result for BadXml26

We need to discuss if this is indeed an appropriate expected result