Remove unexpected's entries from the stack traces of the thrown error objects.