Improve example snippet for adding headers

The example for adding headers to all requests did not set the newly created 'headers' object on the env.options object if there were no headers previously specified.