Is This Double Negative Correct or Not?

Here’s the comic:

His use of “appositive” is correct. “Rex” = “dog.” If he had more than one dog, he should get rid of the comma after “dog.”

But an incorrect double negative would normally have “don’t” instead of “doesn’t.” So is the double negative correct or not?