GH-2 Use null instead of undefined for obj assignment