Updated Java client to handle the case of a NO_CONTENT response.

This changes the Java client so that it returns null if it receives a NO_CONTENT response status instead of calling response.getEntity().  The call to response.getEntity() was throwing an exception in this case.