Don't try to access `stack` of undefined exceptions.