upnphttp: ParseHttpHeaders() checks atoi() return

atoi() can return a negative value, and that can lead to problems
later