XWIKI-10188: WikiStream export is stopped if an attachment is corrupted

(cherry picked from commit 68435e9784ef8f2e15e64ac208d68fda4d8b2704)