Bugfix: prioritisetransaction: Do some basic sanity checking on txid

Besides giving a nicer error, this also prevents logging arbitrary data (which could have been used to exploit log readers) into debug.log

This fixes both issues reported by @SergioDemianLerner on #5398
strName is necessary to understand the purpose of the parameter. "strHex" is just redundant.