fixes streamCompleted detection for SegmentTimeline videos
prevents calling MediaSource.endOfStream if MideaSource.readyState is not 'open'