added null value check when adding headers
Merge pull request #7 from mhowlett/nullheadervaluefix

added null value check when adding headers