netlink: handle errors from netlink_dump()