Upon parsing an invalid OP_PUSHDATA, append the invalid opcode to already parsed valid opcodes

On invalid OP_PUSHDATA, clear the added chunks.

test case for above changes