TypeError: Object.keys called on non-object

Work around for https://github.com/balderdashy/sails-mongo/issues/147