Issue #19676: Fixed integer overflow issue in "namereplace" error handler.