CAMEL-7757 Fix the EOFException in camel-restlet with thanks to Sandeep