Fixed a bug in caching url manager where failing to contact the remote repository would invalidate the local cache.

BUG=40
R=amoser@google.com

Review URL: https://codereview.appspot.com/189320043