Fix typo that caused error on editing value with improper function (return null on undefined)