Fixed "Undefined index: HTTP_X_FORWARDED_FOR" warning

Change-Id: I0e5b7a368861850576f99fb5eca160ec1be267d6