Votes controller: Add error checking for event