Fixed an embarrassing bug if we want to generate a netmask from a prefix == 0.