Layer changed event now only fires when the layer is added to a map

Code in NcWmsPanel expects the layer has a map attribute. In Chrome the map attribute was not set in time