Update util.js

for null value besides undefined