fixed: jack_get_ports returns NULL when there are no ports, so update the ports list anyway when this happens