Check for existence of header field, before trying to access it
correct Warning function