San Francisco lost a big bet, but hedged with Brock Purdy and survived anyway.