Port the test to check for resource received upon error.

https://github.com/ariya/phantomjs/issues/12439