Fix bug: If the message for ReplaceHandler is not specified, the original exception message should be reused.