json: fix "," join in proplist for undefined elems