Check for '(null)' text in X-Forwarded-Port header which seems to come sometimes from Amazon AWS LB.