Fix #269: save wallet when restoring a backup