Add the check for return value of GetString().

This patch is to add the check for return value of GetString() in
widget_handler.cc and xwalk_content.cc.

CID=220010

Related to XWALK-2928.
Merge pull request #2694 from wuhengzhi/xwalk_2928_cid220010

Add the check for return value of GetString().