Adds en error message to the crash if write() is called before writeHead()

Adds an error message before the crash if `response:write()` is called before `response:writeHead()` instead of trying to concatenate nil headers.