PION-1312: patch to avoid access to uninitialized memory in http_parser.cpp

I believe this is related to and may have been at least mostly alleviated by
the earlier fix made for this: https://github.com/cloudmeter/pion/issues/18

This just includes a unit test + updates to make form content parsing safer
+ removes unnecessary extra work when in "headers only" parsing mode