fix -salvagewallet with encrypted wallet