Instead of asserting that there is a parser, just check if one was set. Connection can be closed before first byte is written, and therefore be no parser. (We don't want to crash here)