FIX TIVI-2641: Fix issue in trusted ports with no valid certificate info.