Mined reward sent to stranger address
### Description
Mined altcoin TDCoin using segwit address for the pool address. Reward went to completely deferent non segwit address. And address doesn't belong to the wallet.

### Steps to Reproduce

1. Use segwit address as a pool address.
2. Mine the block.
3. Check balance is 0.

[What you expect to happen]
Reward sent to address specified in configuration.

[What actually happens]
Reward sent to address not specified in configuration.

[What percentage of the time does it reproduce?]
Always
### Version
Latest git master
EL7 Linux Centos 7
