Check res.headersSent before calling res.setHeader() in bail()
Merge pull request #2 from robert-chiniquy/rch/check-if-headers-sent-in-bail

Check res.headersSent before calling res.setHeader() in bail()