fix mapreduce error message is [object object]

Hi mostlyserious,

when I tried to use map reduce feature, I got error message like this "{ [Error: [object Object]] message: '[object Object]', statusCode: 500 }".
I change the code to check is buffer a object or not and try to leave the right error message.

Thanks.