Fix for beforeCreate getting passed options object

In some instances, `beforeCreate` is passed in an object for `next` instead of a function, and therefore `next()` will return an exception