only set old_value in callback params, if there was an old value. we got warnings for trying to use non-existing vars...
Merge branch 'fixwarnings'