PLFM-1672 Fix NPE
PLFM-1670 Fix a bug that the cache refresh is never scheduled