dbus: fix bus type check when getting instance
This MR properly checks if the bus type is correct when getting the Dbus instance. This was found with coverity scan.
This MR properly checks if the bus type is correct when getting the Dbus instance. This was found with coverity scan.