[2.0] Fixed issue where default headers were not getting applied

The default headers weren't getting applied if you passed in nil parameters. This fixes that :)