Some wikis (like frwiki), set their projects to localized forms of the expected (so "wikipedia" becomes "wikipédia"). An additional search by URL in _get_site_name_from_sitesdb() fixes this.