Open wallet livenet in testnet mode and viceversa when importing backup

This PR fix an issue when importing a backup wallet (testnet) and your configuration is in livenet and viceversa.

No test required, because is a fix. However all test pass with mocha and karma.