fix a bug where invalid dbus paths were possible triggering an assert in dbus