Fix double xmlFree - occurred for XSLT failure