bug: don't set header if it's null or undefined