Fix issues in ofono_sim_get_phase and its usage