Fixing an IndexError and a queryset count() issue

If there are no current votes, votes[0] throws an IndexError, and .count always returns something, but .count() may return 0.