glib: In Value.Update, check if val is null before updating

Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>