Fix crash from checking Potion.isBadEffect on server