FM: Fix static analysis issue.
KW issue Suspicious dereference of pointer 'val' by passing argument 1 to 
function 'strlen'before NULL check, fixed by putting null check

Change-Id: I210b40ce8a309b47d7e72b19efc7a8adb1cfbe49
1 file changed