This means headers is `undefined` instead of `null` if not present. FileTransfer.upload() carefully sets each possible option to null first so I thought it was safest to do so again here. Consistency and all that...

I know it looks odd to go through a nulling and an if for one option, but what about if others are added later?