Brush Settings: Fix the "Create preset from scratch" actions.
The original code would lead to the action being deleted before the
string was used, meaning that the action didn't do anything, and the
deletion led to the action being deleted from the list of actions...
I briefly felt like Krita was gaslighting me when I observed that...
Anyway, all we need is the object name, so let's not cast or delete anything.