Check if headers were already sent before writing more
Merge pull request #20 from ShortSharpCode/defensive-header-writing

Check if headers were already sent before writing more