Handle throwing non-Errors without fataling.
Don't try to access `stack` of undefined exceptions.