Play failed when some segments unavailable
Created by: xinlingever
As 'getTimeBasedSegment' returns null if isSegmentAvailable is false,
so segments' length could be smaller than fragments' length,
then exception occurs here.
This issue could be tested with video source 'https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd'