Fix double-free bug
Avoid endless looping in case of XML errors.
suppress error message from libxml when reading XML from stdin.
This avoids breakage of the pipe protocol in case of errors.