Fix crash when wiki/themes folder contains files that are not themes

Fixes #370