Fix potential NPE in entity.can_see

This tag is sometimes used for questionably-existent entities (entities
that died) and as such should null-check.