AviSplitter: Fix a crash when closing the file while re-indexing.

That crash was visible only if the user seeked while re-indexing a broken file and then aborted the re-indexing.

Fixes #2805.