add additionnal check to value to prevent sending null

Hi,
this is a fixed for 0 or "" value that are displayed with null instead of real value.
Cyrille.