[Application] Add the check for the return value.

This patch is to add the check for the return value of FromID() and
GetStoragePartition().

Related to XWALK-2928.
```widget_storage_``` was used in ```application_widget_extension.cc``` without any check, ```CHECK()``` in here would  make more sense.