signrawtransaction: validate private key.
Merge pull request #5461

aa768f1 signrawtransaction: validate private key. (Pavel Janík)