RavenDB-1118

Bug in retry logic