luci-lib-json: ignore null keys to allow encoding empty objects