Fix bug in populate-entity-tagarray truncate query.