View reduce function not working as expected

Is this related to https://issues.couchbase.com/browse/MB-14602