Added a check for external exceptions that have been set

Prevents a false positive log message.