“The Office” was almost cancelled, but “The 40-Year-Old Virgin” saved it by making Steve Carell a huge star.