Coverity issues bug fixes

:Release Notes:
Coverity issues bug fixes

:Detailed Notes:
Fixed resource leaks, missing return statements in non-void methods,
Dereference possibly NULL pointer,Improper Use of Negative Value,
structurally and logically dead codes.

:Testing Performed:
Compiled locally and tested on official build.

:QA Notes:

:Issues Addressed:

[GF-45489] Coverity issues in luna-sysservice

Open-webOS-DCO-1.0-Signed-off-by: Premalatha MVS <premalatha.mvs@lge.com>

Change-Id: Iad8e12d7079e125d23b7973cd8954e744d589bc4
Reviewed-on: https://g2g.palm.com/3830
Reviewed-by: Build Verification
Reviewed-by: Premalatha MVS <premalatha.mvs@lge.com>
Tested-by: Premalatha MVS <premalatha.mvs@lge.com>
Reviewed-by: Ashish Sadre <ashish.sadre@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>
Fix some coverity reported issues

:Release Notes:
Fixed issue when broadcast synchronization may lead into undefined time
jumps. Fixed some other minor issues related with specific
circumstances.

:Detailed Notes:
- added missing assigning from broadcast time
- made clear return value for setPreference with empty object
- removed freeing of uninitialized LSError in cbRefreshWallpaperIndex

:Testing Performed:

:QA Notes:

:Issues Addressed:
[GF-46358] broadcast time synchronization can't work
[GF-46363] luna-sysservice: Coverity reports high impact issues

Open-webOS-DCO-1.0-Signed-off-by: Nikolay Orliuk <nikolay.orliuk@lge.com>
Change-Id: I275a9b6af03478a4a76826be76ab5cc83594c835
Reviewed-on: https://g2g.palm.com/3886
Reviewed-by: Keith Derrick <keith.derrick@lge.com>
Tested-by: Keith Derrick <keith.derrick@lge.com>