Properly end polls when nobody voted.

Also some style fixes