fix ban behavior for empty machine id/ip address
Now if either machine id or ip address is empty for a given user, the ban type is downgraded to avoid banning an empty machine id or ip address.
Now if either machine id or ip address is empty for a given user, the ban type is downgraded to avoid banning an empty machine id or ip address.