Only attempt to update the collections cache if there were no errors.

Related to Bug: 13338
BFN