[CXF-5447] Checking for empty byte arrays to prevent POST issues over HTTPUrlConnection

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1549623 13f79535-47bb-0310-9956-ffa450edef68