Handle empty headers correctly in webRequest code in Chrome