I cant see 12 VDC giving a shock unless you touched it with your tongue. Most likely the shock was a fluke from built up static electicity and the car was grounding through you.
BTW if a nail is making contact then I would try cleaning the contact pin and grounding point with something mildly abrasive so all surfaces shine, and wipe with contact cleaner or alcohol before assembly. Over time contact surfaces can deteriorate and become resistive.