allow null values in NetworkSettings.ports