BAC-1045: be less strict in when checking types

Handle catchable fatal error in SwiftFileBackend::logException