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