hls: Don't check discard flags until the parent demuxer's streams actually exist