Ensure that libxml_disable_entity_loader is disabled for XSLT loading (as it's not thread safe). Closes #1939