QConnectedReplicaImplementation: don't call deleteLater() on a nullptr


It's undefined behavior according to C++, even if you don't touch
members, and only happened to work until
qtbase/13074a967f18ed348ab744f7ff831965607a6421 which made it stop
"working".

Add an explicit nullptr check before calling deleteLater().

Amends 35dd08098f8a4b422d523792261aefe039358f6a(!).

Fixes: QTBUG-120242
Pick-to: 6.7 6.6 6.5 6.2 5.15
Change-Id: I9ce95f8c8f917549ccfd0040f0cd4f483c3a28d0
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit4ef440b458c526ad24a3e87d480ddb44c76c6438
parent19870e5df01e0c47294b7f9cd839191d6762fb63
authorMarc Mutz <marc.mutz@qt.io>
committerMarc Mutz <marc.mutz@qt.io>
commit timeWed, 20 Dec 2023 10:57:14 +0100