fixed erroneous condition handling for users who voted being null