Fix OLE reader for Excel5 files

Currently for me failed to load valid Excel5 file, system goes to infinite loop, so I checked original code and restore some logic from it.