Add a check condition for palmGetResource return value

 - Check for Null, undefined and for an empty string

Open-webOS-DCO-1.0-Signed-off-by: Suresh Arumugam <suresh.arumugam@lge.com>

Change-Id: Idfac902bb02bb9538fe9ec19f3e286ff9947c0ea