Modify method adding curly braces

:Release Notes:
PmLogMsgKS_() will validate json data whether it has right format
Modify method adding "{}" when kv-pair is nothing.

:Detailed Notes:
The variable final_str in function PmLogMsgKS_() includes
key-value pairs and free text string. The new routine splits
key-value pairs(json) and free text string, then uses the existing
fucntion validate_json_string for validation.
Change location for adding "{}" when kv-pair is nothing, because
some module is using macro PmLogMsg() inside their macro. It is
caused compile errors.

:Testing Performed:
Compiled locally and tested on local and TV.
Verified in the log file, error text displayed in
/var/log/legacy-log properly.

:QA Notes:

:Issues Addressed:
[GF-10575] key-value pair should be in proper json format

Open-webOS-DCO-1.0-Signed-off-by: Hongjeon Ha <hj.ha@lge.com>

Change-Id: Ia28aad48e0c1aa97e6e90b0ad683f72a78b3cc75
Reviewed-on: https://g2g.palm.com/3028
Reviewed-by: Build Verification
Reviewed-by: Hongjeon Ha <hj.ha@lge.com>
Tested-by: Hongjeon Ha <hj.ha@lge.com>
Reviewed-by: Keith Derrick <keith.derrick@lge.com>