Fix a NRE in the exception handler.
Merge pull request #4091 from pchote/crashception-fix

Fix a NRE in the exception handler.