Fix logic for when to write preroll data