fix theme discovery when no assets directory exist