#8046530641012 fix clear index error when resource does not exists