Fix sdbusplus call flow to support changed behavior of the latest sdbusplus

This commit fixes sdbusplus call flow to support latest sdbusplus
underlying behavior of sd_bus_call().

This code change is recommended by:
https://lists.ozlabs.org/pipermail/openbmc/2018-October/013696.html

Change-Id: If2bfcb4c2b06dc5b91d12256d09c06cc4316372b
Signed-off-by: Yoo, Jae Hyun <jae.hyun.yoo@intel.com>
diff --git a/sensors/src/Utils.cpp b/sensors/src/Utils.cpp
index 6ce3f18..c211ecd 100644
--- a/sensors/src/Utils.cpp
+++ b/sensors/src/Utils.cpp
@@ -47,11 +47,7 @@
         {
             sdbusplus::message::message reply =
                 dbusConnection->call(getManagedObjects);
-            err = reply.is_method_error();
-            if (!err)
-            {
-                reply.read(managedObj);
-            }
+            reply.read(managedObj);
         }
         catch (const sdbusplus::exception::exception&)
         {