Improve handling of error responses from Bing

Previously `goog.asserts.assert` was used to check that the response was successful, which are stripped from compiled code.  This commit sets the ERROR state on the source instead.

This PR was triggered by #1148.