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.
Merge pull request #129 from dimagi/fix-itext-id-on-clear

fix itext id removal when deleting all values