Votes Controller: Fix null checking logic