Fix mapreduce fail at "reduce post processing" stage

Previous pull request is #231
Create new because change branch name

For me it works perfect
And it fixed my initial issue https://jira.mongodb.org/browse/SERVER-5845