fix exception getting script address from invalid transactions

...net aba0441c4c9933dcd7db789c39053739ec435ab742ed2c23c05f22f1488c0bfd)