The problem was that `automerge` would run even when the operator was cancelled. This also fixes a unnoticed bug were unrelated strokes would merge when the operator was cancelled. Pull Request: https://projects.blender.org/blender/blender/pulls/144470