demux: mkv: fix seek segfault with invalid chapters