Do not clear an input script if we failed to sign it

In some cases, a script input would be cleared when signing failed. I think the correct behaviour is to leave the scrip untouched if signing it failed.