Partial fix for #80823: Changed return type of saveLayerByGroup so it returns a map (containing a SUCCESS entry).