Check if the entity exists before attempting to get the entity when sending item packet