return null instead of throwing an exception
Fix SharedCache::getPathById