fix itext id removal when deleting all values

I added a

if (value)

check in setValue() because I thought this would break, but apparently
''.id == undefined.  This makes it more explicit in the end, though.