libs/web: handle empty tables in Map.set()