Signal: Check if val is null before updating

When a Value is null then Update would fail with an NPE. So if val is null then we do not update the value at all.