RavenDB-1428 Reset the index if the suggestion failed
Adding passing test
Fixing NRE in transformer