fix checking for change and pocket index in some cases.
fix checking for change and pocket index in some cases.

CryptArc/darkwallet,darkwallet/darkwallet,salmion/dashwallet,salmion/dashwallet,darkwallet/darkwallet,CryptArc/darkwallet