Fix retrieving a valid election that have ended