Remove warning

Remove the warning if $image->getCacheFilePath() return empty string.