Prevent collaborative undo

fixes codio/client#178 on client