Ensure port is never NaN