libs/web: fix "port" datatype to allow port 0