Fix: Exceptions raised in Soap/Server can leave XML entity loader disabled.

- Improved the fix a bit: Instead of forcing entity loading to "false",
  the previous setting is saved and restored.
- Adjusted the unittest accordingly.