BUGFIX see if a theme is defined before trying to load it