Added workaround for potential crash on reading UBX output ports.