Partition replica versions should not set if actual backup operation fails

Fixes #4161