Fix infinite loop in BinaryXMLDecoder.