Fix bug #3055, "Claws segfaults when cancelling a sticky search