hlsdemux2: Be more resilient with weird streams with empty segments
Some streams in the wild have empty segments at the beginning and
hlsdemux2 use to stall forever while we can handle it by processing
the following ones. They gap handling mechanism in adaptivedemux2
works properly and push the required gaps.
Also adds a test.
cc @bilboed