We could certainly avoid this duck-typing with a NULL function in ol.layer.Layer:

```
ol.layer.Layer.prototype.getStyle = goog.functions.NULL;
```