Evidently Ted isn't the only one who gets the munchies while sleeping.