Bug 1068602 — Fix 500 on res.headers["www-authenticate"]

https://bugzilla.mozilla.org/show_bug.cgi?id=1068602
I have updated the test to reflect that: https://github.com/mozilla-services/loop-server/commit/a1ad2b2bc5291c4f7fb9462c9f1b3e57b3cdea91