Check proper version of the XMP when reseting a local cache copy.

Fix bug were a local copy with modifications was allowed to be removed.