Fix for bug #1331802.

Updated the HttpAbstractionClient code to check for a null content buffer when trying to send a POST or PUT request.
Added a unit test case to check for this bug.

Closes-Bug: #1331802
Change-Id: I99d93e77a0a5ca4c3678c825517050ab4e3f6789