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=194059
CID=220010

BUG=XWALK-2928