Hi Serkan,
If the java code is part of your customization then I would suggest put a check in java code before setting the particular property and don't forget to enable the property Display blank for unset value in Agentry.
You can also try by enabling this property(Display blank for unset value) even in case of standard code.
Regards,
Sudhir.