Added an isNaN check for no votes cast