Let's only run test/examples.jl if we can actually access the examples

Backport of 872d36349
from: #8466