Fix wallet_get_info when wallet is unlocked

Due to a bad cast of a variant, wallet_get_info would fail if the wallet
was unlocked. This is now fixed.