Allow and respect null values for port