addLayer-colorBrightness fix

Would fail if addLayer was asked to compute vertex brightness when
other layers were already open.