demux_mkv: fix crash bug introduced by recent change