PEL: Check Presence Before Error Logging

In case of VPD parsing exceptions, check if the FRU presence is false.
If it is, then ignore any parser errors.

This helps with cases where a card with a VPD we don't recognize
shows up at the same address, but witout the presence detect.

Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
Change-Id: Ia57dec455f37db52c480b9dbbb23b3cea2ec0f14
diff --git a/ibm_vpd_app.cpp b/ibm_vpd_app.cpp
index e435cc3..613f4af 100644
--- a/ibm_vpd_app.cpp
+++ b/ibm_vpd_app.cpp
@@ -1471,6 +1471,12 @@
                  << "]'s VPD is not valid on PASS1 planar.Ignoring.\n";
             rc = 0;
         }
+        else if (!(isPresent(js, file).value_or(true)))
+        {
+            cout << "FRU at: " << file
+                 << " is not detected present. Ignore parser error.\n";
+            rc = 0;
+        }
         else
         {
             string errorMsg =