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.