MDL-47214 General: Multiple IP addresses in X-Forwarded-For Fixed

Fixed code checker issues with my code.