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.