Hi,
The electrical system has to ground through the bigger castings of the Cub.
When painting the engine, if you have it out of the Cub, don't paint at the front, where the mountings for the front end are, or the mountings on the front end.
Don't paint at the rear of the engine, where the clutch housing touches the engine, don't paint the clutch housing there.
Don't paint the place on the block where the generator bracket goes, or the bottom of the bracket.
Don't paint where the starter bolts to the engine.
If you painted those places, I would remove the paint before putting the Cub together.
There are more places to not paint, paint things so there is a path to ground, where the battery ground cable is.