Check to prevent null value getting set for customHeaders configuration