fix call of expandObjBy with undefined