[GEOS-5705] Enabled and advertised flags in the resource will get out of synch with the LayerInfo ones right after GUI editing