Safety check on ObjectByName.