hls: Fix a possible crash when exiting early during stream startup