Scroll api reduce phase fails if shard failures occur

Only occurs in 1.x and master branches and not in any released versions.