It is possible that Rashi meant only stam yeinam, for as the Ramban wrote, the language yayin nesech includes even stam yeinam. Rav Saadiah Gaon may have meant an indirect rescue, not a mortal danger. The Sages permitted him this, thinking a great good for Israel would come about through him, and that he would build the Beit HaMikdash.