minor fix to theme factory to prevent the case when default theme list is completely empty