Revert "Fix detected defects from static analysis"

:Release Notes:
This reverts commit 5f9b7593df638e4d2f55e95f50138234d0c825ee.

:Detailed Notes:
Revert as this task was not approved by LT

:Testing Performed:
tested on build

:QA Notes:

:Issues Addressed:
[GF-56731] Fix coverity issues in the db8 component

Open-webOS-DCO-1.0-Signed-off-by: Maksym Sditanov <maxim.sditanov@lge.com>

Change-Id: I80ae2886c1d84f1a229bbb48e7c5e1acd8651eba
Reviewed-on: https://g2g.palm.com/4292
Reviewed-by: DCO Verification
Tested-by: Maksym Sditanov <maxim.sditanov@lge.com>
Reviewed-by: Oleksii Uratkin <oleksii.urathkin@lge.com>
Reviewed-by: Maksym Sditanov <maxim.sditanov@lge.com>