Fixing equality check of LibXML::XML::Error against other objects