RavenDB-2777 Mark index as errored when number of failed writes is great...

...er than 10. Also do not run reduce phase for an index marked as errored.