Fixing undefined index notices on theme activation