Some HLS tweaks to make recording more robust when faced with unreliable
feeds.

(cherry picked from commit 7f8dd24816a251d51b3cb42173d7dd19a4ba1a52)