Fixes a bug when fn is not defined

In some cases I was getting the following error:

```console
node_modules/mongoose-schema-extend/index.js:67
          fn.apply(this, arguments);
             ^
TypeError: Cannot call method 'apply' of undefined
```

This request fixes the problem.