The value is not None or null, it is an empty String. In Jython (not Python OR Java), an empty string is greater than 0.

Consider including a check for the empty string before committing changes.
if (value > 0) and (len(str(value)) > 0):
# do something