Moderna swung to a loss in the last three months of the year after an early launch of its updated Covid-19 vaccine shifted sales out of the fourth quarter.