[wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call.
[wallet] Make sure pindex is non-null before possibly referencing in LogPrintf call.

Github-Pull: #10265
Rebased-From: c36ea693ee16611e0337aec682d1ce80b90e1bd3

patricklodder/dogecoin,xieta/mincoin,argentumproject/argentum,dogecoin/dogecoin,xieta/mincoin,xieta/mincoin,mincoin-project/mincoin,psionin/smartcoin,myriadteam/myriadcoin,myriadcoin/myriadcoin,myriadteam/myriadcoin,patricklodder/dogecoin,psionin/smartcoin,argentumproject/argentum,argentumproject/argentum,zcoinofficial/zcoin,zcoinofficial/zcoin,dogecoin/dogecoin,zcoinofficial/zcoin,dogecoin/dogecoin,xieta/mincoin,argentumproject/argentum,patricklodder/dogecoin,psionin/smartcoin,argentumproject/argentum,mincoin-project/mincoin,mincoin-project/mincoin,dogecoin/dogecoin,zcoinofficial/zcoin,mincoin-project/mincoin,patricklodder/dogecoin,myriadcoin/myriadcoin,patricklodder/dogecoin,psionin/smartcoin,dogecoin/dogecoin,xieta/mincoin,zcoinofficial/zcoin,myriadteam/myriadcoin,xieta/mincoin,argentumproject/argentum,myriadcoin/myriadcoin,argentumproject/argentum,mincoin-project/mincoin,psionin/smartcoin,psionin/smartcoin,myriadcoin/myriadcoin,dogecoin/dogecoin,zcoinofficial/zcoin,zcoinofficial/zcoin,myriadcoin/myriadcoin,myriadteam/myriadcoin,zcoinofficial/zcoin,myriadcoin/myriadcoin,mincoin-project/mincoin,zcoinofficial/zcoin,myriadteam/myriadcoin,zcoinofficial/zcoin,myriadteam/myriadcoin