initial fix to detect invalid ballots so that verificatum doesnt fail on them