Creating new sharedStyle from existing shared LayerStyle is not working
Somehow creating a new sharedStyle from an existing shared LayerStyle object is not working, while it is working with a shared TextStyle object.

**Is working:**
```javascript
export function duplicateTextStyle(newProps) {
  const original = document.getSharedTextStyleWithID(newProps.instanceOf);

  return SharedStyle.fromStyle({
    name: newProps.name,
    style: original.style,
    document: document
  });
}
```

**Is NOT working:**
```javascript
export function duplicateLayerStyle(newProps) {
  const original = document.getSharedLayerStyleWithID(newProps.instanceOf);

  return SharedStyle.fromStyle({
    name: newProps.name,
    style: original.style,
    document: document
  });
}
```