Adjusted to the fact that the REST API returns OK when a search runs, but fails, and produces an error response, not a results document.

Signed-off-by: David Noble <dnoble@splunk.com>