[qtdbus] Fix potential crash on unregistering a dbus object

Regression from 0b6509fc2f0173136db3fc357f09867d8e36ebd8. Will be merged with that commit in upstream.