Fix HTTP authorization creation when HTTP header list is empty.