Fixing inverted condition which causes a failure when no download cache is configured

Apologies for this, didn't notice it when I created the original pull request.