Resolves: fdo#86485 fix terminate on SAXException on malformed input

SAXException thrown and not caught

(cherry picked from commit 58a96d3ccedbade4f1a8bfbbc4b7d8f1615cfc69)

Change-Id: I874ffbcd457e102b572f398f4e531f4be30ca3d3
Reviewed-on: https://gerrit.libreoffice.org/12981
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>