Port Simpletest error code patch.

Based on change in
https://github.com/drush-ops/drush/commit/e5655f2decb185352f00f3d553ea3198887f5840