Fix case when deleting temp style created with sld editor viewer.