fix invalid opcode script parsing

Upon parsing an invalid OP_PUSHDATA, append the invalid opcode to already parsed valid opcodes.

Otherwise the previous sigops are not counted.