LayerTree: Delete SH object bug 95% fixed

It used to never repaint the drawing area upon deleting a SH object. Now
it will repaint the drawing area every time unless you delete the first
drawn SH object (last in the layerTree's display under the layer). If
there is only one SH object under a layer it does properly repaint the
drawing area to be blank. I can't figure it out, it's pretty strange and
I could use some help.