Fix #956: Certain libxml versions cause some config handlers to randomly produce invalid results due to corrupt XPath result sets