Jon Favreau initially didn't want Tony Stark to die in Avengers: Endgame