John Mulaney says he took a job on Seth Meyers’ show for his own mental health