Fix for launchpad bug : 1324814

The java API has an issue with distinguishing between a field that is not set and something that has been explicitly cleared. This issue is coming up in the context of a delete operation that needs to clear a reference. If one uses the clear_X() method, the internal information is set to NULL and it results in no update being sent.

Fix for the same is committed.