Absolutely do not use that filter, your life or the life of the fish are in danger. If you were a licensed electrician then it might be possible.
It is an inexpensive replacement please just do that. Thank goodness you saw it and identified the dangerous situation!!!
New to FW fish? First tank in a long time or EVER??? Need some info on keeping fish?
Start here - Aquarium Advice Article
FW Favorites right now Clown Loaches, any shrimp - SW Vase Red Mangroves