Initialise tpos and tstack in the Protocol constructor so writing to a p...

...rotocol without a message does not fail.