Don't double check trace origin in  ExceptionWrapper#traces

If a trace isn't an application one, then it comes from a framework.
That's the definition of framework trace. We can speed up the traces
generation if we don't double check that.
Merge pull request #17639 from gsamokovarov/faster-exception-wrapper-traces

Don't double check trace origin in ExceptionWrapper#traces