fix incorrect encrypted backup restore error handling. Issue #10179
(cherry picked from commit 153f78af168e81e89792a92dc81ed719ce86296b)
fix incorrect encrypted backup restore error handling. Issue #10179
(cherry picked from commit 153f78af168e81e89792a92dc81ed719ce86296b)