Issue #2829791 by YesCT: Fix exception message for MachineNameController replace_token query parameter (cherry picked from commit f08a8c83)