Alter stacktach ping handler to only ping on certain events.

Also use origional_message_id if present.