avoid endless loop when reading broken file
avoid endless loop when reading broken file

Change-Id: I512d48b5ea25d3784f5b63725d4ff3b8ad648ccc

LibreOffice/libvisio,LibreOffice/libvisio,LibreOffice/libvisio