Issue #24993: Handle import error in namereplace error handler

Handle PyCapsule_Import() failure (exception) in PyCodec_NameReplaceErrors():
return immedialty NULL.
1 file changed