Fix a crasher found in production

* The delta should be calculated against the cache fragment's dsr, as the tsr
  might not be available.
* Also check if both the token's tsr and the fragment's dsr are available
  before setting the delta.

Change-Id: I8979f1dea161d27dd36402bb19338395e6a7e167