Fire `onResourceReceived` callback when the resource error occured.

I also added `id` property to the `requestData` object.

Issue:
https://github.com/ariya/phantomjs/issues/11163