added entity check before drinking to prevent server crash