[TIMOB-6828] Setting value as nil removes header from request

Fix for [TIMOB-6828](https://jira.appcelerator.org/browse/TIMOB-6828)