translate None to null instead of to undefined