Fix potential crash in fix for 458335
https://errors-eval.kde.org/share/issue/05aa265e16774e62aea06d697e9c8490/ seems to be crashing in that code, it's not clear how to reproduce it, but protecting the pointer access with a QPointer we make sure the button still exists before trying to set back its text.