For instance, see What May Happen in the Next Hundred Years. This does not have a Wikipedia page, but the link is shown as blue anyway.
I suspect that this is because the Wikipedia page doesn't return a 404, it returns a page saying that Wikipedia doesn't have an article. If you just check to see if the link exists and don't check to see if it links to a missing article page, you'd end up coloring every Wikipedia link blue.