Fix crash when get_process_id called with an app no longer on the bus