Fix AppsHashCode not getting updated

AppsHashCode was not getting updated under 2 circumstances.

First when a BackupRegistry is used at all. Second when
fetchRegistry is called. Most notably when this is called
by the CacheRefreshThread.