Bug 889526 - Improve reportError so that it will add a stack trace if one is available; r=past