Every once in a blue moon I have the same problem and the “remove rests” option always works. Makes me chuckle every time and I’m sure the team is addressing it.
You would actually want to go to the last note right before the removed rest and untick the ‘ends voice’ property.
I do wonder at times whether or not a “restore rests” command should be added to help people dig themselves out of holes when they are confused about how starting and ending voices really works.