Don't try to replace resource links that weren't downloaded

This prevents us from mangling HTML or script that looks like a
reference to a resource, but actually is not one. For example, a
javascript function defined as:

function url(link) { ... }

which our regex approach to parsing CSS thinks is a resource reference