[HOTFIX] Added null check of resourcelocator before cache expire