Check tag name before finding it.