MDL-67189 external: Catch Throwable in call_external_function