In its finale, this comedy about comedy circled back to the romance of creative partnership and the saving power of laughs.