Fixes #2497: Fixed new introduced bug that prevented "Redo: Cut Edges" from working.

(cherry picked from commit 0eacb016569d62c583d02afdee2c8e9a2e3efb1c)