Fix handling of FPPipeContext.ports()