Correctly send last_sent_value even when it is 0
Merge branch 'master' into debug