bb#11076 - fixed looping from xmlReader inconsistent state