Fix showing two nodes when converting to a Filter Mask
- When a filter mask we should first remove the source layer, and only after that show the filter selection dialog
- Also make sure that the operation is rolled back when the user presses Cancel button