bug #3645 Better handling of invalid ODS documents