Fix notice. There can be dirs in that list that have no extension defined
Merge pull request #2025 from rarila/searchplugin-fix

Fix notice in SearchPlugin::handle()