dbus-sensors: Corrected condition check for object existence

Tested: confirm sdr list in every AC cycle
:~# ipmitool sdr list
CPU_PROCHOT      | 0x00              | ok
FAN_BRD_CABLE    | 0x00              | ok
FAN_P54V_CABLE   | 0x00              | ok
HSBP_CABLE       | 0x00              | ok
HSBP_P12V_STBY_2 | 0x00              | ok
NCSI_PRSNT       | 0x00              | ok
PG_ALL_FAN       | 0x00              | ok
PG_P3V3_STBY_HSB | 0x00              | ok
PG_P3V3_STBY_U2  | 0x00              | ok
PG_P12V_DDR_ABD  | 0x00              | ok
PG_P12V_DDR_EFH  | 0x00              | ok
PG_P12V_PE0      | 0x00              | ok
PG_P12V_PE1      | 0x00              | ok
PG_P12V_PE2      | 0x00              | ok
SLIMSAS_00_CABLE | 0x00              | ok
SLIMSAS_01_CABLE | 0x00              | ok
SLIMSAS_02_CABLE | 0x00              | ok
SLIMSAS_03_CABLE | 0x00              | ok
THERMTRIP        | 0x00              | ok

Test-Report-Link: https://drive.google.com/drive/folders/1rKiaZKcVBwBp6rMA7gQ_4bvnkQC3xhGF?usp=drive_link

Fusion-Link:
https://fusion2.corp.google.com/00d242ad-29e6-337e-a934-74f5354ea9a6 ( platform5)
https://fusion2.corp.google.com/f3426a4a-0c8c-3965-85c2-9c18b26347a0 (platform11)

Google-Bug-Id: 362208338
Change-Id: I9c4f55a7757bb2e9c92cf2c46779e5c20d835a36
Signed-off-by: Kao.Benson <kao.benson@inventec.corp-partner.google.com>
(cherry picked from commit 6a8019e206a0c4d953a1274bfc41b030d783ad2f)
Signed-off-by: Brennan Swanton <brennanswanton@google.com>
diff --git a/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch b/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch
index 29b02e4..aa6c60d 100644
--- a/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch
+++ b/recipes-phosphor/sensors/dbus-sensors/0003-gpiosensor-a-dedicated-daemon-to-report-gpio-status-.patch
@@ -597,7 +597,7 @@
 +            gpiopresencesensing::inventoryObjPath);
 +        sdbusplus::message::object_path objPath = inventoryPath / config.name;
 +        std::cout << "New config received " << objPath.str << std::endl;
-+        if (!controller->hasObj(objPath.str))
++        if (controller->hasObj(objPath.str))
 +        {
 +            controller->removeObj(objPath.str);
 +        }