Warner Bros Discovery misses revenue forecasts despite surprise profit, as streaming growth offsets weak box office and advertising sales.