Modification to avoid issues when having a medium where the massFraction_pTphi function does not exist