Bugfix: check if theme directories exist before looking for theme files.