Fixes wrong scriptPubkey problem in #6389, causing the transaction to not actually be signed.
Also change bitcoin-tx so that in MutateTxSign if SignSignature fails, signing is marked as incomplete. This makes sure that errors in e.g. scriptPubKeys are detected.