Fix potential issue with null accept headers