[CXF-5404,CXF-5406] Fixing NPE and ClassCastException when reading entries with no content or without 'type' parameter

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