[server][Utils] Fix a bug in which an necessary 'if statement' is contaminated by mistake.