fixed: check if jack_port_by_id or jack_port_name returns NULL