Check that object is CT_AI before accessing AI-specific fields

Reactors call player_is_visible_from_object, but do not use the ai_info
field.  Add a check to use ai_info only when the object is actually a
robot.