add additionnal check to value to prevent sending null
Merge pull request #11 from eskan/master

add additionnal check to value to prevent sending null