handle NULL in hp_parse_headers