takes care of #2102 by reverting setAmbient to false if it was false
before calling popStyle()