service: fix serialization when an ip object is missing it's ipnet