Increase transaction counter when erasing party
As the erase is done using direct SQL query, the counter is not increased so there is no log event created because the wizard use the counter to determine if there were some modification and thus create a log entry.
Closes #13002 (closed)