RavenDB-1946 throwing exception when restore has failed