save custom error objects to this.msg

I commented in #207 about this. A project I work on is passing a custom error object like `{code: 404, msg: 'Not Found'}` as the message in our validators. The latest versions of validator break this by leaving `this.msg` as `null` when the message is an Object.