dbus: a couple of corrections after static analysis