Gracefully handle early deregistration of objects


When an object is deregistered before the signal handler got
initializated, we asserted. Now, we check for this case and skip the
signal handler removal when it wasn't set up yet.

Change-Id: I7abad204cbab72be7729d42f58ce63babd2310d8
Task-number: QTBUG-60250
Reviewed-by: Kai Dohmen <psykai1993@googlemail.com>
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
commit446978af11ab886d734ca3972dcd73f847df9fbc
parent36a42a2ebd3198654a29afe7f6bb450849c745ea
authorMilian Wolff <milian.wolff@kdab.com>
committerMilian Wolff <milian.wolff@kdab.com>
commit timeMon, 15 May 2017 14:37:49 +0000