feat(trace): resolve incorrect extension (#9486)
### Description
Invalid extensions are unfortunately too common in imports. Therefore if
we can't resolve with the extension, we strip it and try again.
### Testing Instructions
Added a test where we try to import with the wrong extension