StateMachine: Don't crash if no signal is passed to SignalTransition


Rather, just reset the transition.

Pick-to: 5.15 6.2 6.4 6.5
Fixes: QTBUG-110286
Change-Id: Ic25a6c7b841a47b180e1a62c7bdbd2e388cdc293
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commitaf4c8da54bbf057f3a8d7cf8a8e4146d35aad7f6
parent1b5562d67764eb7bea28fc4a2fd357810ac1a859
authorUlf Hermann <ulf.hermann@qt.io>
committerUlf Hermann <ulf.hermann@qt.io>
commit timeWed, 25 Jan 2023 15:57:54 +0100