Fix buffer overflow

:Release Notes:
Fix buffer overflow

:Detailed Notes:
Crash is occured when kv-pair comes 0 and log message's length is
over than 1024.

:Testing Performed:
Compiled locally and tested on a device.

:QA Notes:

:Issues Addressed:
[GF-45845] HuluPlus: sometimes crashing upon loading the
           application or an episode

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

Change-Id: If710381e11654341af117750188e4b1a67b514c0
Reviewed-on: https://g2g.palm.com/3972
Reviewed-by: DCO 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>