Check if exception is nil in Appsignal.add_exception