fix for issue 393 - always reset libxml_disable_entity_loader

by resetting libxml as soon as possible
Merge pull request #410 from hella-gutmann/issue-393

Fix for issue #393 - Always reset libxml_disable_entity_loader