Fixed a crash that would happen if the material and tiletype lists were open when stonesense started.