xml/diff: don't leak the libxml document on import
xml/diff: don't leak the nolibxml buffer on failure to parse