Added null check to Precinct castBallot