webos-image: pmcertificatemgr=29

:Release Notes:
Fix multiple issues discovered by Coverity including resource leaks,
dead code, missing null-checks.

:Detailed Notes:

Changes submissions/28..29
dc711d0 Pmcertificatemgr: Coverity bug fixes

:Testing Performed:
Fixes verified by inspection.

:QA Notes:

:Issues Addressed:
[GF-53261] pmcertificatemgr: fix coverity issues
[GF-54522] CCC: pmcertificatemgr=29

Open-webOS-DCO-1.0-Signed-off-by: Keith Derrick <keith.derrick@lge.com>

Change-Id: I0036de630bfa8977c1b4755ba8cbd91caa4aa970
Reviewed-on: https://g2g.palm.com/4162
Reviewed-by: DCO Verification
Build: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Reviewed-by: Martin Jansa <Martin.Jansa@lge.com>
Reviewed-by: Build Verification
Reviewed-by: Susan Montooth <susan.montooth@lge.com>
Tested-by: Susan Montooth <susan.montooth@lge.com>