You could save one line of code by doing
```js
if (!goog.isNull(map)) {
  map.getSkippedFeatures().push(feature);
}
```