Change null callback to undefined