Avoid "QObject::disconnect: Unexpected null parameter" error on application stop
Differential Revision: https://phabricator.kde.org/D14098