Early-season adversity has stoked Mavericks’ success