resolve the issue crash node when return err


 
TypeError: Cannot call method 'map' of undefined
    at xx/node_modules/sails-mongo/lib/adapter.js:309:33