ofz#6571 catch exception

Change-Id: I438bd0be1eb44e87cb166e1594316a3ad5d5dae0
Reviewed-on: https://gerrit.libreoffice.org/50452
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx
index f8e9278..01460f6 100644
--- a/sw/source/filter/xml/xmlimp.cxx
+++ b/sw/source/filter/xml/xmlimp.cxx
@@ -1853,6 +1853,9 @@ extern "C" SAL_DLLPUBLIC_EXPORT bool TestImportDOCX(SvStream &rStream)
    catch (const css::lang::WrappedTargetRuntimeException&)
    {
    }
    catch (const std::exception&)
    {
    }
    xDocSh->SetLoading(SfxLoadedFlags::ALL);

    xDocSh->DoClose();