Backport of 3.x code to catch warning messages in JHttpTransportStream

http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32608&start=0