In a word, no. Now this scenario is slightly different from what the OP noted, but, I believe that the concept is the same.
My grandmother divorced my grandfather when my dad was a small child. She remarried, but, didn’t go through an annulment. Nonetheless, she never stopped going to Mass and reared my dad and his half-sister in the Church. I never understood, growing up, why she never went to receive Holy Communion. Nonetheless, she made sure that all of us went to Mass whenever we visited.
It was not until my 8th grade Catholic school graduation Mass that I finalliy saw her get in line to receive Our Lord. My stepgrandfather also got in line. It was later that I learned what an annulment meant and why she finally decided to obtain one.
The bottom line is that a practicing Catholic must be in good standing (ie: free of morral sin) in order to receive Our Lord. Living in an invalid marriage presents a barrier to the Catholic and prevents him or her from receiving Holy Communion. Unless the Catholic party can secure a convalidation to rectify the situation, he or she must refrain from receiving Our Lord. Now, that does not remove the obligation to assist at Mass on Sundays and all Holy Days of Obligation. My grandma could not receive Our Lord for nearly 40+ years, but, that did not excuse her from going to Mass. In fact, it was through her that I really learned to love the liturgy, epsecially the Pashcal Triduum.
Just because one cannot receive Our Lord, that doesn’t remove the obligation to attend Mass.