Avoid nil attributes in headerwhen not using WSA headers

Shout out to everyone in #582 that helped bring this to the community's attention.

Closes #606.