Port Simpletest error code patch.

Based on change in
https://github.com/drush-ops/drush/commit/e5655f2decb185352f00f3d553ea3198887f5840
Merge pull request #458 from adam-vessey/6.x

BackPort Simpletest error code patch.