The Mavericks were nearing disaster after blowing a 13-point lead in the fourth quarter before Luka Doncic and Kyrie Irving came to the rescue to help lift them over the Nuggets.