Fix undefined index warning.

Forgot about cases where there is no 'theme' index in the settings array.