Fix potential division by zero in vote results