Well if his mom didn’t get the joke, I don’t think we should think it is.
Ted's an Aspie, and Aspie’s often make jokes that no one gets. Don't be to hard on him for it.