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.
Merge branch 'master' of https://github.com/mpc-hc/mpc-hc into vs2012