Use null instead of undefined

Undefined is reserved for values that don't exist.